<!-- Just want to give credit to Web-Kreation for the Jquery panel that made this E-commerce login section possible -->
<?
 require_once('inc/loginauth.php');
        if(isset($_REQUEST['email']))
              LoginUser($_REQUEST['email'],$_REQUEST['password']);
?>
<!-- Panel -->
<div id="toppanel">
			<div class="left">
				<!-- Login Form -->
                <? if(IsLoggedIn()){ ?>
                <h1>Congratulations! Your Logged In</h1>
    <? }else{ ?>
        <form class="clearfix" action="#" method="post">
               <h1>Member Login</h1>
               <label class="grey" for="email">Email:</label>
               <input type="email" name="email" />
               <label class="grey" for="password">Password:</label>
               <input type="password" name="password" />
               <input type="submit" value="Log In" />
        </form>
    <? } ?>	
			</div>
			<div class="left right">			
				<!-- Register Form -->
				<form action="#" method="post">
					<h1>Not a member yet? Sign Up!</h1>				
					<label class="grey" for="signup">Username:</label>
					<input class="field" type="text" name="signup" id="signup" value="" size="23" />
					<label class="grey" for="email">Password:</label>
					<input class="field" type="text" name="email" id="email" size="23" />
					<input type="submit" name="submit" value="Register" class="bt_register" />
				</form>
			</div>
		</div>
</div> <!-- /login -->	

	<!-- The tab on top -->	
	<div class="tab">
		<ul class="login">
			<li class="left">&nbsp;</li>
			<li>Hello Guest!</li>
			<li class="sep">|</li>
			<li id="toggle">
				<a id="open" class="open" href="#">Log In | Register</a>
				<a id="close" style="display: none;" class="close" href="#">Close Panel</a>			
			</li>
			<li class="right">&nbsp;</li>
		</ul> 
	</div> <!-- / top -->
	
</div> <!--panel -->